home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / fax_sstv / ezsstv / memory.txt < prev    next >
Text File  |  1996-04-19  |  7KB  |  180 lines

  1.                 Memory
  2.                 ------
  3.  
  4. Former versions of Pasokon TV were rather picky about
  5. memory requirements.  Since it was an old fashioned "16 bit"
  6. application, it used the computer in "virtual 8086" mode.
  7.  
  8. This meant it could address only one megabyte of memory
  9. directly and had to worry about the 640K "conventional"
  10. memory limit and go through contortions to shuffle information
  11. in and out of "extended" memory.  Memory managers, such
  12. as EMM386 -- and especially QEMM -- added more overhead to
  13. Input/Output (I/O) operations and interrupt processing.
  14. It was not uncommon for the "machine too slow" message to
  15. pop up on a '486 when a '286, without a memory manager,
  16. was plenty fast.
  17.  
  18. Pasokon TV version 3 shatters these barriers to take full
  19. advantage of the 32 bit architecture, virtual memory, and
  20. other features of '386 and later processors.
  21.  
  22.  
  23. Image Size
  24. ----------
  25.  
  26. Version 2 used images of 320 x 240 pixels with 32,000 colors 
  27. for a total of about 150K memory for each image.
  28.  
  29. Version 3 uses images of 640 x 480 pixels with more than 16 
  30. million colors for a total of almost a megabyte per image.
  31. How can we store 10 images on a machine with only 8 Meg of
  32. memory?
  33.  
  34.  
  35. Virtual Memory
  36. --------------
  37.  
  38. Instead of being limited to the amount of physical memory
  39. available, Pasokon TV can act as if more is available.
  40. When there is not enough physical memory available, portions
  41. of the program and data which have not been used recently
  42. are swapped out to disk.  For best results you will
  43. want 8 megabytes of memory but it might be possible to get
  44. along with 4.  You will just notice more disk activity and
  45. some operations will be slower because more information
  46. needs to be shuffled in and out of limited memory.  The
  47. amount of "virtual" memory is limited by the amount of free
  48. disk space.
  49.  
  50.  
  51. Out of Memory Error
  52. -------------------
  53.  
  54. This is not talking about physical memory or RAM chips in the
  55. computer.  Instead it means there is not enough free disk 
  56. available for swapping.  You should have at least 16 megabytes
  57. of free disk space when running Pasokon TV.
  58.  
  59.  
  60. Disk Space
  61. ----------
  62.  
  63. When you start up Pasokon TV, it looks around for a suitable
  64. place to create a temporary file for swapping.  The search 
  65. order is:
  66.  
  67. 1. Use directory specified by TEMP variable.  
  68. 2. Use directory specified by TMP variable.
  69. 3. Search drives C: up until an invalid one is found.
  70.    Use the one with the most free space.
  71.  
  72. The first two may require some explanation.  Many programs
  73. create temporary files for various reasons and usually delete
  74. them when finished.  Generally these will put them in the 
  75. directory specified by the TEMP or TMP variable which is
  76. usually set in the AUTOEXEC.BAT file.  For example:
  77.  
  78.         SET TEMP=C:\TEMP
  79.         SET TMP=C:\TEMP
  80.  
  81. Be sure there is a directory by this name:
  82.  
  83.         CD \
  84.         MKDIR TEMP
  85.  
  86. You can examine the values of variables by simply typing 
  87. the "SET" command.  
  88.  
  89. After running various applications for a while you might 
  90. notice a lot of files in the temp directory that were not
  91. cleaned up.  When you run low on disk space, you might want
  92. to look in the temp directory and delete all the files
  93. found there.
  94.  
  95. One person I talked to had the TEMP variable pointing to
  96. the C:\DOS directory.  This is a very bad idea.  Temporary
  97. files mixed in with operating system files makes it very
  98. difficult to delete the unneeded temp files without 
  99. disturbing other files.  If the TMP and TEMP variables
  100. point to a special directory that is used ONLY for temp
  101. files, you can delete all the files in that directory
  102. occasionally without fear of wiping out something 
  103. important.
  104.  
  105. If you turn off the computer while Pasokon TV is running, or
  106. if it hangs or crashes, the temp file might not be deleted.
  107. Do this a few times and a lot of free disk space will 
  108. disappear.
  109.  
  110.  
  111. Disk Maintenance
  112. ----------------
  113.  
  114. There are certain tasks you should do occasionally (perhaps
  115. once every few weeks) to keep your disk drive in good shape.
  116.  
  117. 1. Virus Checker.
  118.  
  119.         Computer viruses are programs that attach themselves
  120.         to other programs, spread to other programs, and often 
  121.         do nasty things to your computer. 
  122.  
  123.         Commercial products, in the original sealed package, 
  124.         are usually quite safe because the manufacturers are 
  125.         generally very careful about protecting their systems 
  126.         from viruses.  The biggest danger is in free software 
  127.         found on random bulletin boards or other places because 
  128.         you have no idea where it came or what happened to it 
  129.         along the way.  Even if the original was clean, it may 
  130.         have become infected later.
  131.        
  132.         Before installing any new non-commercial software, 
  133.         be sure to check it for viruses.  MS-DOS 6 includes
  134.         a virus checker called MSAV.  You might want to
  135.         purchase another one from a different company.  New
  136.         viruses are being created all the time and it can't
  137.         hurt to have multiple virus checkers that look for
  138.         different types of clues.
  139.  
  140. 2. File System Checker.
  141.  
  142.         If a program terminates abnormally while writing a file,
  143.         that disk space can disappear.  That's because it was 
  144.         removed from the free space list but not yet associated
  145.         with a particular file.
  146.  
  147.         If the power is turned off at the wrong time, the disk
  148.         can be left in an inconsistent state.
  149.  
  150.         MS-DOS 6 includes a program called SCANDISK which 
  151.         examines a file system for problems and fixes them.
  152.         In Windows 95 run it by clicking on the Start button
  153.         and choosing Programs -> Accessories -> System Tools.
  154.         Click on ScanDisk.
  155.  
  156.         Run this more often if you have problems with
  157.         programs crashing or a power failure which can
  158.         cause file system corruption.
  159.  
  160. 3. Defragmentation.
  161.  
  162.         On a new disk, all the files are adjacent and all the
  163.         free space is in one big contiguous region.  This is
  164.         good.
  165.  
  166.         As time goes on, and many files are created and deleted,
  167.         the free space is in little chunks all over the place
  168.         rather than gathered together.  What this means is that
  169.         a new file will have little pieces scattered all over
  170.         the place.  It is much faster to access complete adjacent
  171.         tracks on a disk drive instead of bouncing all the over
  172.         the place for little pieces here and there.
  173.  
  174.         Performance can be improved by running a defragmentation
  175.         program.  Be sure to run SCANDISK first.  In MS-DOS 6 
  176.         this is called DEFRAG.  In Windows 95, click on the 
  177.         Start button and then choose Programs -> Accessories -> 
  178.         System Tools.  Click on Disk Defragmenter.
  179.  
  180.